﻿/* Copyright 2010 Igor Francé
 * 
 * This file is part of ECMADoc (http://ecmadoc.codeplex.com).
 * 
 * ECMADoc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * ECMADoc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with ECMADoc. 
 * If not, see http://www.gnu.org/licenses/.
 */
namespace EcmaDoc.Core
{
	using System;

	/// <summary>
	/// Defines the <c>EventArgs</c> for the <see cref="Parser.Progress"/> event.
	/// </summary>
	public class ParseProgressEventArgs : EventArgs
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="ParseProgressEventArgs"/> class.
		/// </summary>
		/// <param name="percentDone">The percent done so far.</param>
		public ParseProgressEventArgs(int percentDone)
		{
			this.PercentDone = percentDone;
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="ParseProgressEventArgs"/> class.
		/// </summary>
		/// <param name="percentDone">The percent done so far.</param>
		/// <param name="fileName">The name of the file that was just processed.</param>
		public ParseProgressEventArgs(int percentDone, string fileName)
		{
			this.PercentDone = percentDone;
			this.FileName = fileName;
		}

		/// <summary>
		/// Gets the percent done.
		/// </summary>
		public int PercentDone { get; private set; }

		/// <summary>
		/// Gets the name of the file currently being processed.
		/// </summary>
		public string FileName { get; private set; }
	}
}
